package pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @TableName t_order
 */
@Data
@AllArgsConstructor
public class Order implements Serializable {
    /**
     * 订单表主键
     */
    private Integer id;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 订单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date orderTime;

    /**
     * 是否删除
     */
    private Integer isDeleted;

    /**
     * 订单金额
     */
    private Double amount;

    /**
     * 订单金额人民币大写
     */
    private String amountChinese;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 客户名称
     */
    private String customer;

    private List<OrderGood> orderGoodList;


    private static final long serialVersionUID = 1L;
}